improve uconfig hostname and homekit weight
authorJohn Crispin <[email protected]>
Wed, 28 May 2025 07:55:13 +0000 (09:55 +0200)
committerJohn Crispin <[email protected]>
Wed, 28 May 2025 07:55:13 +0000 (09:55 +0200)
Signed-off-by: John Crispin <[email protected]>
data/dell.json [deleted file]
plugins/plugin_mdns.uc

diff --git a/data/dell.json b/data/dell.json
deleted file mode 100644 (file)
index 7aa6091..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-{
-       "vendor=%": {
-               "Dell": [
-                       "mac-oui-50284a|1"
-               ]
-       },
-       "vendor=Dell|class=laptop": {
-               "Precision 7680": [
-                       "wifi4|0,1,33,48,45,127,255(59),54,70,59,244,221(0050f202),htcap:19e7,htagg:17,htmcs:0000ffff,txpow:1600,extcap:0400ca02014040c0012120",
-                       "wifi6|0,1,33,48,45,127,255(35),255(59),54,70,59,244,221(0050f202),htcap:19e7,htagg:17,htmcs:0000ffff,txpow:1600,extcap:0400ca02014040c0012120,hemac:abc09a307801,hephy:01fc0f168c09fd094e3f",
-                       "dhcp_req|1,2,6,12,15,26,28,121,3,33,40,41,42,119,249,252,17"
-               ]
-       }
-}
index 308d3794f27be95ec9d09a9c99b1ba9b444b344e..5f7a92d8bc0a63acf7220e705214e0eb4576bde7 100644 (file)
@@ -174,9 +174,10 @@ function handle_fritzbox(txt)
        return ret;
 }
 
-function handle_uconfig(txt)
+function handle_uconfig(txt, host)
 {
        let ret = [];
+       push(ret, `%device_name|mdns_device_name|${host}`);
        push(ret, "%class|mdns_uconfig|uconfig");
        return ret;
 }
@@ -299,7 +300,7 @@ function init(gl) {
                mdns_model_string: 5.0,
                mdns_printer: 5.0,
                mdns_scanner: 1.0,
-               homekit_class: 2.0,
+               homekit_class: 10.0,
                mdns_uconfig: 10.0,
        });
 }